package lishe.myrefreshview.MyResyclerView;

import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.RelativeLayout;

import lishe.myrefreshview.R;

/**
 * Created by shino on 2017/10/13.
 */

public class RefreshFooterLayout extends RelativeLayout implements RefreshRecyclerViewInterface {
    public RefreshFooterLayout(Context context) {
        super(context);
        initView();
    }

    public RefreshFooterLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
        initView();
    }

    public RefreshFooterLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView();
    }

    @TargetApi(Build.VERSION_CODES.LOLLIPOP)
    public RefreshFooterLayout(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        initView();
    }

    private void initView() {
        inflate(getContext(), R.layout.refresh_layout, this);
    }

    @Override
    public void onDefault() {
//        Log.e("RefreshFooterLayout", "onDefault");
    }

    @Override
    public void onReady() {
//        Log.e("RefreshFooterLayout", "onReady");
    }

    @Override
    public void onStartRefresh() {
//        Log.e("RefreshFooterLayout", "onStartRefresh");
    }

    @Override
    public void onRefreshing() {
//        Log.e("RefreshFooterLayout", "onRefreshing");
    }

    @Override
    public void onEndRefresh() {
//        Log.e("RefreshFooterLayout", "onEndRefresh");
    }

    @Override
    public void onLoadingMore() {

    }

    @Override
    public void onEndLoadingMore() {

    }
}
